window.onload = function() {

	document.getElementById("search").onclick = click;

};

function click(){
	
	var room=document.getElementById("room").value;
	var data=document.getElementById("data").value;
	
	
	var str = room + data ;
	
	
		new Ajax.Request("../page/room.php", {
		method: "get",   // optional
		parameters: { id: parm_id},
		onSuccess: ajaxSuccess,
		onFailure: ajaxFailure,
	});
	
	
	
}